package zhang.com.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import zhang.com.ssm.mapper.AuthorMapper;
import zhang.com.ssm.po.AuthorPo;
import zhang.com.ssm.service.AuthorService;

@Service
public class AuthorServiceImpl implements AuthorService {
	@Autowired
	AuthorMapper  authorMap;
    
	
	@Override
	public void insertAuthor(AuthorPo author) {
		authorMap.insertAuthor(author);
	}


	@Override
	public void insertAuthors(List<AuthorPo> authors) {
		authorMap.insertAuthors(authors);
		
	}

}
